
<?php
	//echo $form->create('User', array('action => newuser'));
//    echo $form->input('User.email_address', array('label' => 'Email Address'));
//    echo $form->input('User.fname', array('label' => 'First Name'));
//    echo $form->input('User.lname', array('label' => 'Last Name'));
//    echo $form->input('User.hphone', array('label' => 'Home Phone'));
//    echo $form->input('User.wphone', array('label' => 'Work Phone'));
//    echo $form->input('User.cphone', array('label' => 'Cell Phone'));
//    echo $form->input('Group.name',array('type'=>'select','options'=>$grp, 'selected' => 'User'));
//    echo $form->end('Add User');
   //pr($grp);
?>
<section class="container_6 clearfix">
    <!--<form id="form" class="form grid_6">-->
    <fieldset>
        <legend>Create New User</legend>
    <fieldset class="form grid_6">
        <?php echo $form->create('User', array('action => newuser')); ?>
        <legend>User Information</legend>
        <label>User name<em>*</em><small>Enter a contact e-mail address</small></label><?php echo $form->text('User.email_address', array('label' => 'Email Address'));?>
        <label>First Name<em>*</em></label><?php echo $form->text('User.fname', array('label' => 'First Name'));?>
        <label>Last Name<em>*</em></label><?php echo $form->text('User.lname', array('label' => 'Last Name'));?>
        <label>Password<em>*</em><small>New user temporary password</small></label><?php echo $form->text('User.password', array('label' => 'Password', 'type' => 'password')); ?>
    </fieldset>
    <fieldset class="form grid_6">
        <legend>User Contact Phones</legend>
        <label>Home Phone Number<small>Format: xxx xxx-xxxx</small></label><?php echo $form->text('User.hphone', array('label' => 'Home Phone'));?>
        <label>Cell Phone Number<small>Format: xxx xxx-xxxx</small></label><?php echo $form->text('User.cphone', array('label' => 'Cell Phone'));?>
        <label>Work Phone Number<small>Format: xxx xxx-xxxx</small></label><?php echo $form->text('User.wphone', array('label' => 'Work Phone')); ?>
    </fieldset>
    <fieldset class="form grid_6">
        <legend>User Group</legend>
        <?php echo $form->input('Group.name',array('label' => 'Group Name','type'=>'select','options'=>$grp, 'selected' => 'User')); ?>
    </fieldset>
    <fieldset class="form grid_6">
    <legend>User Status</legend>
   
    <?php $opts = array('0' => 'Inactive', '1' => 'Active');
    
    echo $form->input('User.active', array('options' => $opts, 'type' => 'select', 'label' => 'Status')); ?>
    
    </fieldset>
    <fieldset class="form grid_6">        
        <div class="action">
        <?php echo $form->end('Add User', array('class' => 'button button-gray accept')); ?>
        </div>
    </fieldset>

        
    
    </fieldset>
    <!--</form>-->


</section>

